// 查询弹幕列表页接口
const getScrollingPage = (params) => {
    return $axios({
        url: '/scrolling/page',
        method: 'get',
        params
    })
}

// 增加弹幕接口
const addScrolling = (params) => {
    return $axios({
        url: `/scrolling/add`,
        method: 'post',
        data: {...params}
    })
}

// 修改弹幕接口
const editScrollingById = (params) => {
    return $axios({
        url: `/scrolling/edit`,
        method: 'post',
        data: {...params}
    })
}

// 删除弹幕接口
const deleteScrollingById = (id) => {
    return $axios({
        url: '/scrolling',
        method: 'delete',
        params: {id}
    })
}

// 根据 id 获取段落查询
const getScrollingById = (params) => {
    return $axios({
        url: `/scrolling/byId`,
        method: 'get',
        params
    })
}

// 查询弹幕列表接口
const getScrollingList = (params) => {
    return $axios({
        url: '/scrolling/list',
        method: 'get',
        params
    })
}
// 查询弹幕列表页接口
const getImagePage = (params) => {
    return $axios({
        url: '/image/page',
        method: 'get',
        params
    })
}

// 增加图片接口
const addImage = (params) => {
    return $axios({
        url: `/image/add`,
        method: 'post',
        data: {...params}
    })
}

// 删除图片接口
const deleteImageById = (id) => {
    return $axios({
        url: '/image',
        method: 'delete',
        params: {id}
    })
}

const getImageList = () => {
    return $axios({
        url: '/image/list',
        method: 'get'
    })
}
